package com.sys.group.mapper;

import com.sys.group.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gyf
 * @since 2023-05-15
 */
public interface UserMapper extends BaseMapper<User> {

    /*
    * 获取角色
    * */
    public List<String> getRoleNameByUserId(Integer uid);

    /*
    * 更新上次登录时间
    * */
    public void updateLastLogin(User user);

    List<Integer> getRoleIdByUserId(Integer uid);

    void updateMyInfo(User user);
}
